package com.numbfish.bean_factory.ex_04_annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:ex_04/classpath-scanning.xml");
        FXNewsProvider newsProvider = (FXNewsProvider)ctx.getBean("FXNewsProvider");
        newsProvider.getAndPersistNews();
    }
}
